package com.oracle.intelagr.controller;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.oracle.intelagr.common.PageModel;
import com.oracle.intelagr.entity.MMonitorpoint;
import com.oracle.intelagr.service.IMonnitorPointService;

@Controller
@RequestMapping("moniPoint")
public class MoniPointController {
	@Autowired
	private IMonnitorPointService moniPointService;
	@RequestMapping("list")
	public String list(PageModel pageModel,Map map) {
		//接受请求参数调用service获得结果将结果传给视图层，向视图层跳转，
		
		List<MMonitorpoint> queryAll = moniPointService.queryAll();
		map.put("moniPoint", queryAll);
		return "/monipoint/moniPointList";
	}
}
